# 配置文件导入

def return_config():
    gameconfig = {}
    gameconfig['item_config'] = item_config_import()
    gameconfig['level_exp_config'] = level_exp_config_import()
    gameconfig['mission_config'] = mission_config_import()
    gameconfig['equip_config'] = equip_config_import()
    return gameconfig

def item_config_import():
    item_conig = {
  "10001": {
    "id": 10001,
    "name": "狗皮膏药",
    "info": "回复20点生命值",
    "level": 1,
    "level_name": "人品",
    "effect": "hp|20",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了狗皮膏药，现在感觉身体好多了"
  },
  "10002": {
    "id": 10002,
    "name": "正骨丹",
    "info": "回复50点生命值",
    "level": 2,
    "level_name": "灵品",
    "effect": "hp|50",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了正骨丹，现在感觉身体好多了"
  },
  "10003": {
    "id": 10003,
    "name": "回元丹",
    "info": "回复80点生命值",
    "level": 2,
    "level_name": "灵品",
    "effect": "hp|80",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了回元丹，现在感觉身体好多了"
  },
  "10004": {
    "id": 10004,
    "name": "黄龙丹",
    "info": "回复100点生命值",
    "level": 3,
    "level_name": "地品",
    "effect": "hp|100",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了黄龙丹，现在感觉身体好多了"
  },
  "10005": {
    "id": 10005,
    "name": "真元丹",
    "info": "回复250点生命值",
    "level": 4,
    "level_name": "天品",
    "effect": "hp|250",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了真元丹，现在感觉身体好多了"
  },
  "10006": {
    "id": 10006,
    "name": "生机丹",
    "info": "回复500点生命值",
    "level": 5,
    "level_name": "仙品",
    "effect": "hp|500",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了生机丹，现在感觉身体好多了"
  },
  "10007": {
    "id": 10007,
    "name": "引气丹",
    "info": "增加25点修为",
    "level": 1,
    "level_name": "人品",
    "effect": "exp|25",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了引气丹，现在感觉身体凝聚了不少灵气"
  },
  "10008": {
    "id": 10008,
    "name": "补气丹",
    "info": "增加30点修为",
    "level": 2,
    "level_name": "灵品",
    "effect": "exp|30",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了补气丹，现在感觉身体凝聚了不少灵气"
  },
  "10009": {
    "id": 10009,
    "name": "聚气丹",
    "info": "增加35点修为",
    "level": 3,
    "level_name": "地品",
    "effect": "exp|35",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了聚气丹，现在感觉身体凝聚了不少灵气"
  },
  "10010": {
    "id": 10010,
    "name": "聚灵丹",
    "info": "增加50点修为",
    "level": 4,
    "level_name": "天品",
    "effect": "exp|50",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了聚灵丹，现在感觉身体凝聚了不少灵气"
  },
  "10011": {
    "id": 10011,
    "name": "一气鸿蒙丹",
    "info": "增加50点修为",
    "level": 4,
    "level_name": "天品",
    "effect": "exp|50",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了一气鸿蒙丹，现在感觉身体凝聚了不少灵气"
  },
  "10012": {
    "id": 10012,
    "name": "三花玉露丹",
    "info": "增加80点修为",
    "level": 5,
    "level_name": "仙品",
    "effect": "exp|80",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了三花玉露丹，现在感觉身体凝聚了不少灵气"
  },
  "10013": {
    "id": 10013,
    "name": "三纹清灵丹 ",
    "info": "增加80点修为",
    "level": 5,
    "level_name": "仙品",
    "effect": "exp|80",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了三纹清灵丹 ，现在感觉身体凝聚了不少灵气"
  },
  "10014": {
    "id": 10014,
    "name": "七命玄门丹",
    "info": "增加1000点修为",
    "level": 6,
    "level_name": "圣品",
    "effect": "exp|1000",
    "type": 1,
    "type_name": "丹药",
    "use_msg": "你使用了七命玄门丹，现在感觉身体凝聚了不少灵气"
  }
}
    return item_conig

def level_exp_config_import():
    level_exp_config = {
  "1": {
    "id": 1,
    "name": "炼体境前期",
    "upgrade_need": 0,
    "auto_exp_value": 10,
    "manual_exp_value": 100
  },
  "2": {
    "id": 2,
    "name": "炼体境中期",
    "upgrade_need": 50000,
    "auto_exp_value": 10,
    "manual_exp_value": 100
  },
  "3": {
    "id": 3,
    "name": "炼体境后期",
    "upgrade_need": 80000,
    "auto_exp_value": 10,
    "manual_exp_value": 100
  },
  "4": {
    "id": 4,
    "name": "炼体境大圆满",
    "upgrade_need": 90000,
    "auto_exp_value": 10,
    "manual_exp_value": 100
  },
  "5": {
    "id": 5,
    "name": "练气境前期",
    "upgrade_need": 100000,
    "auto_exp_value": 20,
    "manual_exp_value": 200
  },
  "6": {
    "id": 6,
    "name": "练气境中期",
    "upgrade_need": 150000,
    "auto_exp_value": 20,
    "manual_exp_value": 200
  },
  "7": {
    "id": 7,
    "name": "练气境后期",
    "upgrade_need": 200000,
    "auto_exp_value": 20,
    "manual_exp_value": 200
  },
  "8": {
    "id": 8,
    "name": "练气境大圆满",
    "upgrade_need": 400000,
    "auto_exp_value": 20,
    "manual_exp_value": 200
  },
  "9": {
    "id": 9,
    "name": "筑基境前期",
    "upgrade_need": 500000,
    "auto_exp_value": 100,
    "manual_exp_value": 1000
  },
  "10": {
    "id": 10,
    "name": "筑基境中期",
    "upgrade_need": 700000,
    "auto_exp_value": 100,
    "manual_exp_value": 1000
  },
  "11": {
    "id": 11,
    "name": "筑基境后期",
    "upgrade_need": 800000,
    "auto_exp_value": 100,
    "manual_exp_value": 1000
  },
  "12": {
    "id": 12,
    "name": "筑基境大圆满",
    "upgrade_need": 900000,
    "auto_exp_value": 100,
    "manual_exp_value": 1000
  },
  "13": {
    "id": 13,
    "name": "金丹境前期",
    "upgrade_need": 1000000,
    "auto_exp_value": 500,
    "manual_exp_value": 5000
  },
  "14": {
    "id": 14,
    "name": "金丹境中期",
    "upgrade_need": 2000000,
    "auto_exp_value": 500,
    "manual_exp_value": 5000
  },
  "15": {
    "id": 15,
    "name": "金丹境后期",
    "upgrade_need": 3000000,
    "auto_exp_value": 500,
    "manual_exp_value": 5000
  },
  "16": {
    "id": 16,
    "name": "金丹境大圆满",
    "upgrade_need": 4000000,
    "auto_exp_value": 500,
    "manual_exp_value": 5000
  },
  "17": {
    "id": 17,
    "name": "元婴境前期",
    "upgrade_need": 5000000,
    "auto_exp_value": 800,
    "manual_exp_value": 8000
  },
  "18": {
    "id": 18,
    "name": "元婴境中期",
    "upgrade_need": 6000000,
    "auto_exp_value": 800,
    "manual_exp_value": 8000
  },
  "19": {
    "id": 19,
    "name": "元婴境后期",
    "upgrade_need": 7000000,
    "auto_exp_value": 800,
    "manual_exp_value": 8000
  },
  "20": {
    "id": 20,
    "name": "元婴境大圆满",
    "upgrade_need": 8000000,
    "auto_exp_value": 800,
    "manual_exp_value": 8000
  },
  "21": {
    "id": 21,
    "name": "化神境前期",
    "upgrade_need": 10000000,
    "auto_exp_value": 1000,
    "manual_exp_value": 10000
  },
  "22": {
    "id": 22,
    "name": "化神境中期",
    "upgrade_need": 30000000,
    "auto_exp_value": 1000,
    "manual_exp_value": 10000
  },
  "23": {
    "id": 23,
    "name": "化神境后期",
    "upgrade_need": 50000000,
    "auto_exp_value": 1000,
    "manual_exp_value": 10000
  },
  "24": {
    "id": 24,
    "name": "化神境大圆满",
    "upgrade_need": 100000000,
    "auto_exp_value": 1000,
    "manual_exp_value": 10000
  }
}
    return level_exp_config

def mission_config_import():
    mission_config = {
    "1001": {
      "id": 1001,
      "name": "初入仙门",
      "type": 1,
      "info": "你发现你可以感悟天地，引天地之灵气为己所用，于是你便踏入修仙一途",
      "target": "level|0",
      "reward": [
        10001
      ],
      "subsequent_task": 1002
    },
    "1002": {
      "id": 1002,
      "name": "引气入体",
      "type": 1,
      "info": "将灵体引入体内，能够将身健体，尝试突破炼体境吧",
      "target": "level|4",
      "reward": [
        10001
      ],
      "front_task": 1002,
      "subsequent_task": 1003
    },
    "1003": {
      "id": 1003,
      "name": "筑基之路",
      "type": 1,
      "info": "筑基后你便能将体内的灵气提纯化液，进一步让你的灵力质量提高。踏入筑基境才是真正的修仙开始。",
      "target": "level|8",
      "reward": [
        10001
      ],
      "front_task": 1003,
      "subsequent_task": 1004
    },
    "1004": {
      "id": 1004,
      "name": "金丹修士",
      "type": 1,
      "info": "你的灵气液体终于能够凝结成金丹，成为金丹修士后你便站在大部分修士的前面了。",
      "target": "level|12",
      "reward": [
        10001
      ],
      "front_task": 1004,
      "subsequent_task": 1005
    },
    "1005": {
      "id": 1005,
      "name": "元婴老怪",
      "type": 1,
      "info": "破金丹化为元婴是许多金丹修士梦寐以求的事情",
      "target": "level|16",
      "reward": [
        10001
      ],
      "front_task": 1005,
      "subsequent_task": 1006
    },
    "1006": {
      "id": 1006,
      "name": "化婴成神",
      "type": 1,
      "info": "终于要化婴修成化神修士了吗！？",
      "target": "level|20",
      "reward": [
        10001
      ],
      "front_task": 1006
    }
  }
    return mission_config

def equip_config_import():
  equip_config = {
    "1001": {
      "id": 1001,
      "name": "布帽",
      "info": "用布做的帽子",
      "level": 1,
      "level_name": "人品",
      "attr1": "ap|1|5",
      "attr1_name": "法术伤害",
      "attr2": "ap_def|2|5",
      "attr2_name": "法术防御",
      "type": 1,
      "type_name": "头部"
    },
    "1002": {
      "id": 1002,
      "name": "八卦巾",
      "info": "蕴含些许阴阳韵道的帽子",
      "level": 2,
      "level_name": "灵品",
      "attr1": "ap|2|8",
      "attr1_name": "法术伤害",
      "attr2": "ap_def|2|8",
      "attr2_name": "法术防御",
      "type": 1,
      "type_name": "头部"
    },
    "2001": {
      "id": 2001,
      "name": "灵石肩",
      "info": "用灵石熔炼成的护肩",
      "level": 2,
      "level_name": "灵品",
      "attr1": "ap|2|8",
      "attr1_name": "法术伤害",
      "attr2": "ad_def|5|10",
      "attr2_name": "物理防御",
      "type": 2,
      "type_name": "肩部"
    },
    "2002": {
      "id": 2002,
      "name": "玄晶肩",
      "info": "用玄晶熔炼成的护肩",
      "level": 3,
      "level_name": "地品",
      "attr1": "ap|5|10",
      "attr1_name": "法术伤害",
      "attr2": "ad_def|8|10",
      "attr2_name": "物理防御",
      "type": 2,
      "type_name": "肩部"
    },
    "3001": {
      "id": 3001,
      "name": "天蚕宝衣",
      "info": "天蚕产的丝线坐的衣服",
      "level": 4,
      "level_name": "天品",
      "attr1": "ad_def|50|100",
      "attr1_name": "物理防御",
      "attr2": "ap_def|50|100",
      "attr2_name": "法术防御",
      "type": 3,
      "type_name": "衣服"
    },
    "3002": {
      "id": 3002,
      "name": "金丝护心袍",
      "info": "金天蚕产出的灵丝编成的外袍",
      "level": 5,
      "level_name": "仙品",
      "attr1": "ad_def|50|150",
      "attr1_name": "物理防御",
      "attr2": "ap_def|50|150",
      "attr2_name": "法术防御",
      "type": 3,
      "type_name": "衣服"
    },
    "4001": {
      "id": 4001,
      "name": "布护手",
      "info": "用布做的护手",
      "level": 1,
      "level_name": "人品",
      "attr1": "ad|1|5",
      "attr1_name": "物理伤害",
      "attr2": "ap_def|2|5",
      "attr2_name": "法术防御",
      "type": 4,
      "type_name": "手部"
    },
    "4002": {
      "id": 4002,
      "name": "灵石护手",
      "info": "用灵石熔炼成的护手",
      "level": 2,
      "level_name": "灵品",
      "attr1": "ad|2|8",
      "attr1_name": "物理伤害",
      "attr2": "ap_def|2|8",
      "attr2_name": "法术防御",
      "type": 4,
      "type_name": "手部"
    },
    "5001": {
      "id": 5001,
      "name": "玄晶裤",
      "info": "用玄晶熔炼成的裤子",
      "level": 3,
      "level_name": "地品",
      "attr1": "ad|15|30",
      "attr1_name": "物理伤害",
      "attr2": "ad_def|10|25",
      "attr2_name": "物理防御",
      "type": 5,
      "type_name": "裤子"
    },
    "5002": {
      "id": 5002,
      "name": "万灵玄铁裤",
      "info": "用万灵玄铁熔炼成的裤子",
      "level": 4,
      "level_name": "天品",
      "attr1": "ad|15|35",
      "attr1_name": "物理伤害",
      "attr2": "ad_def|10|30",
      "attr2_name": "物理防御",
      "type": 5,
      "type_name": "裤子"
    },
    "6001": {
      "id": 6001,
      "name": "疾风靴",
      "info": "穿上后跑得像疾风一样的靴子",
      "level": 4,
      "level_name": "天品",
      "attr1": "ad|15|25",
      "attr1_name": "物理伤害",
      "attr2": "ap|10|25",
      "attr2_name": "法术伤害",
      "type": 6,
      "type_name": "鞋子"
    },
    "6002": {
      "id": 6002,
      "name": "聚灵万宝鞋",
      "info": "好鞋子",
      "level": 5,
      "level_name": "仙品",
      "attr1": "ad|20|28",
      "attr1_name": "物理伤害",
      "attr2": "ap|10|30",
      "attr2_name": "法术伤害",
      "type": 6,
      "type_name": "鞋子"
    }
  }
  return equip_config




